﻿// Action script...

// [Action in Frame 1]
function adj()
{
    preloader_mc._x = Stage.width / 2;
    preloader_mc._y = Stage.height / 2;
    mc_bg._x = Stage.width / 2;
    mc_bg._y = Stage.height / 2;
    stage_bg._width = Stage.width;
    stage_bg._height = Stage.height;
    navFooter_mc._x = Math.ceil(Stage.width - 10);
    navFooter_mc._y = Math.ceil(Stage.height - 10);
} // End of the function
function pre1()
{
    getLoaded = Math.ceil(_root.getBytesLoaded() / _root.getBytesTotal() * 100);
    preloader_mc.loaded_txt.text = getLoaded + "%";
    if (getLoaded == 100)
    {
        pre2();
    } // end if
} // End of the function
function pre2()
{
    clearInterval(preID);
    trace ("pre2");
    loaded_txt.text = "";
    gs.TweenMax.to(preloader_mc, 1, {ease: gs.easing.Strong.easeOut, _alpha: 0, _xscale: 0, _yscale: 0, onComplete: pre3});
} // End of the function
function pre3()
{
    gotoAndStop(2);
    removeMovieClip (preloader_mc);
} // End of the function
Stage.align = "TL";
Stage.showMenu = false;
Stage.scaleMode = "noScale";
stop ();
resListener = {};
Stage.addListener(resListener);
resListener.onResize = function ()
{
    adj();
};
preloader_mc._xscale = 100;
preloader_mc._yscale = 100;
stop ();
this._alpha = 100;
f0._xscale = 100;
f0._yscale = 100;
f1._xscale = 100;
f1._yscale = 100;
f2._xscale = 100;
f2._yscale = 100;
gs.TweenMax.from(f0, 1, {_xscale: 20, _yscale: 20, ease: gs.easing.Back.easeOut});
gs.TweenMax.from(f1, 1, {delay: 0.200000, _xscale: 0, _yscale: 0, ease: gs.easing.Back.easeOut});
gs.TweenMax.from(f2, 1, {delay: 0.400000, _xscale: 0, _yscale: 0, ease: gs.easing.Back.easeOut});
preID = setInterval(pre1, 200);
adj();
